package org.javagenerate.generator.sample;

import java.lang.reflect.Method;

import org.javagenerate.generator.BaseGenerator;
import org.javagenerate.generator.MethodDefinition;

public class IntroSpector extends BaseGenerator {

	private String classname;
	private String packageName;
	private String extendsclass;
	
	
	public IntroSpector(String classname, String packageName, String extendsclass, Class clasz) {
		super();
		this.classname = classname;
		this.packageName = packageName;
		this.extendsclass = extendsclass;
		
		getImplements().add(clasz.getSimpleName());
		getImports().add(clasz.getPackage().getName());
		
		
		for (Method method : clasz.getMethods()) {
			addMethod(new MethodDefinition(method));
		}
	}
	
	@Override
	public String getClassName() {
		return classname;
	}

	@Override
	public String getExtends() {
		return extendsclass;
	}

	@Override
	public String getPackageName() {
		return packageName;
	}

}
